16. Exercise: Create an AsyncTask
Create AsyncTask
Create AsyncTask
SOLUTION:
- Create GithubQueryTask as an inner class of MainActivity, with the types URL, Void, and String.
- Override doInBackground to query Github and return a string
- Override onPostExecute to set our searchResultsTextView with the GitHub query search results
- Instantiate and call GithubQueryTask in the makeGithubSearchQuery function